package com.littcore.saap.assistant.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import java.io.Serializable;

/**
 * <br>
 * Table:quickview_grid<br>
 * @author Hibernate Tools 3.4.0.CR1
 * @version 1.0
 * @since May 18, 2015 4:16:49 PM
 */
@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@Table(name = "quickview_grid")
public class QuickviewGrid implements Serializable {
	/**
	 * UID
	 */
	private static final long serialVersionUID = 1L;
	/**
	 */
	private Integer id;

	/**
	 * 租户ID.
	 */
	private int tenantId;

	/**
	 */
	private int qvId;

	/**
	 */
	private String columnName;

	/**
	 */
	private String format;

	/**
	 */
	private int position;

	public QuickviewGrid() {
	}

	public QuickviewGrid(int tenantId, int qvId, String columnName, int position) {
		this.tenantId = tenantId;
		this.qvId = qvId;
		this.columnName = columnName;
		this.position = position;
	}

	public QuickviewGrid(int tenantId, int qvId, String columnName,
			String format, int position) {
		this.tenantId = tenantId;
		this.qvId = qvId;
		this.columnName = columnName;
		this.format = format;
		this.position = position;
	}

	/**  
	 */
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	/**
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**  
	 * Get 租户ID.
	 * @return 租户ID
	 */

	@Column(name = "TENANT_ID", nullable = false)
	public int getTenantId() {
		return this.tenantId;
	}

	/**
	 * Set 租户ID.
	 * @param tenantId 租户ID
	 */
	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	/**  
	 */

	@Column(name = "QV_ID", nullable = false)
	public int getQvId() {
		return this.qvId;
	}

	/**
	 */
	public void setQvId(int qvId) {
		this.qvId = qvId;
	}

	/**  
	 */

	@Column(name = "COLUMN_NAME", nullable = false, length = 20)
	public String getColumnName() {
		return this.columnName;
	}

	/**
	 */
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	/**  
	 */

	@Column(name = "FORMAT", length = 200)
	public String getFormat() {
		return this.format;
	}

	/**
	 */
	public void setFormat(String format) {
		this.format = format;
	}

	/**  
	 */

	@Column(name = "POSITION", nullable = false)
	public int getPosition() {
		return this.position;
	}

	/**
	 */
	public void setPosition(int position) {
		this.position = position;
	}

}
